//@author A0083782W
#include "SingleAction.h"


SingleAction::SingleAction(void) {
	_actionTime.setSecondDisplay (true);
	CurrentTime aClock;
	_actionTime = aClock;
	_myEvent.reset();
}

void SingleAction::reset() {
	_actionTime.setSecondDisplay (true);
	CurrentTime aClock;
	_actionTime = aClock;
	_myEvent.reset();
}

const Time& SingleAction::getActionTime() const {
	return _actionTime;
}

void SingleAction::setOperationType(OperationType newType) {
	_myOptType = newType;
}

void SingleAction::setActionTime() {
	CurrentTime aClock;
	_actionTime = aClock;
}
	
const Event& SingleAction::getEvent() const {
	return _myEvent;
}

void SingleAction::setEvent(const Event& newEvent) {
	_myEvent = newEvent;
}

OperationType SingleAction::getOperationType() const {
	return _myOptType;
}